home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre3.z / postgre3 / src / lib / H / utils / excid.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-27  |  2.0 KB  |  109 lines

  1. /*
  2.  * excid.h --
  3.  *    POSTGRES known exception identifier definitions.
  4.  */
  5.  
  6. #ifndef    ExcIdIncluded        /* Include this file only once */
  7. #define ExcIdIncluded    1
  8.  
  9. /*
  10.  * Identification:
  11.  */
  12. #define EXCID_H    "$Header: /private/postgres/src/lib/H/utils/RCS/excid.h,v 1.5 1990/08/17 08:53:58 cimarron Exp $"
  13.  
  14. #include "tmp/c.h"
  15. #include "utils/exc.h"    /* for Exception */
  16.  
  17. /*
  18.  * Nonrecoverable Exceptions
  19.  *
  20.  *    Exceptions which cannot be recovered.  The system is dead.
  21.  */
  22. /* none? */
  23.  
  24. /*
  25.  * Recoverable (Fail-Fast) Exceptions
  26.  *
  27.  *    Exceptions which can be recovered by resetting the system.
  28.  */
  29.  
  30. /*
  31.  * Generic Recoverable Exceptions
  32.  */
  33.  
  34. /*
  35.  * FailedAssertion --
  36.  *    Indicates an Assert(...) failed.
  37.  */
  38. extern Exception FailedAssertion;
  39.  
  40. /*
  41.  * BadState --
  42.  *    Indicates a function call request is inconsistent with module state.
  43.  */
  44. extern Exception BadState;
  45.  
  46. /*
  47.  * BadArg --
  48.  *    Indicates a function call argument or arguments is out-of-bounds.
  49.  */
  50. extern Exception BadArg;
  51.  
  52. /*
  53.  * Specific Recoverable Exceptions
  54.  */
  55.  
  56. /*
  57.  * BadAllocSize --
  58.  *    Indicates that an allocation request is of unreasonable size.
  59.  */
  60. extern Exception BadAllocSize;
  61.  
  62.  
  63. /*
  64.  * Retryable (Abort-Transaction) Exceptions
  65.  *
  66.  *    Exceptions which need only cause the current transaction to abort.
  67.  */
  68.  
  69. /*
  70.  * ExhaustedMemory --
  71.  *    Indicates an dynamic memory allocation failed.
  72.  */
  73. extern Exception ExhaustedMemory;
  74.  
  75. /*
  76.  * Unimplemented --
  77.  *    Indicates a function call request requires unimplemented code.
  78.  */
  79. extern Exception Unimplemented;
  80.  
  81. /*
  82.  * Parser Exceptions
  83.  *
  84.  *    Exceptions generated by the parser.  These should be renamed and
  85.  * merged in with the exceptions generated by other parts of the system.
  86.  */
  87.  
  88. /*
  89.  *  --
  90.  */
  91. extern Exception CatalogFailure;    /* XXX inconsistent naming style */
  92.  
  93. /*
  94.  * --
  95.  */
  96. extern Exception InternalError;        /* XXX inconsistent naming style */
  97.  
  98. /*
  99.  *  --
  100.  */
  101. extern Exception SemanticError;        /* XXX inconsistent naming style */
  102.  
  103. /*
  104.  *  --
  105.  */
  106. extern Exception SystemError;        /* XXX inconsistent naming style */
  107.  
  108. #endif    /* !defined(ExcIdIncluded) */
  109.